<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改</title>

<style type="text/css">
<!--
.STYLE1 {font-size: 50px}
-->
</style>
</head>

<body>
<?php
error_reporting(E_ALL ^ E_DEPRECATED);
$id=$_GET['id'];
session_start();
$_SESSION['id']=$id;
//echo $id;
$link = mysql_connect('localhost','root','xbsmpasswd') or die(mysql_error());// 建立连接
//var_dump($link);
mysql_select_db('wechat',$link);// 选择数据库
mysql_query('set names utf8');// 设定连接编码
$sql ="SELECT * FROM mail_list where id=$id";
$rs=mysql_query($sql);
$rows=mysql_fetch_assoc($rs);
//print_r($rows);


?>

<center>

<form id="form1" name="form1" method="post" action="modify2.php">
  <p class="STYLE1">修改</p>
  <table width="257" height="127" border="1">
    <tr>
      <td>姓名</td>
      <td><label>
        <input name="name" type="text" size="30" id="name" value="<?php echo $rows['name']?>">
      </label></td>
    </tr>
    <tr>
      <td>电话号码</td>
      <td><label>
        <input name="phone" type="text" id="phone" value="<?php echo $rows['phone']?>">
      </label></td>
    </tr>
    <tr>
      <td>职位</td>
      <td><label>
        <input name="position" type="text" id="position" value="<?php echo $rows['position']?>">
      </label></td>
    </tr>
      <tr>
          <td>部门</td>
          <td><label>
                  <input name="department" type="text" id="department" value="<?php echo $rows['department']?>">
              </label></td>
      </tr>
      <tr>
          <td>板块</td>
          <td><label>
                  <input name="plate" type="text" id="plate" value="<?php echo $rows['plate']?>">
              </label></td>
      </tr>
  </table>
  <p>&nbsp;</p>
  <tr>
<td colspan="2" align="center"><input type="submit" name="button" value="修改" />
<input type="button" name="button2" value="返回" onClick="location.href='mail_list.php'" />
</td>
</tr>
<p>&nbsp;</p>
</form>
</center>
</body>
</html>